Viber
Druid authors can integrate Druid chatbots with Viber to allow their customers to start a conversation with their chat bot in the Viber app.
Prerequisite
- You need to have an Active Viber account on a platform which supports bots (iOS/Android). This account will automatically be set as the account administrator during the account creation process.
- For DRUID on premise deployments, make sure that you provide access to/from the necessary messaging endpoints as follows:
Outbound | chatapi.viber.com |
Inbound | DRUID.BotApp |
This section describes how to integrate your Druid chatbot with Viber.
Step 1. Create a new Viber bot
- Go to https://partners.viber.com and enter the mobile number associated to your active Viber account. You will receive a message with a code in the Viber messaging app.
- Enter the code to activate access to the Public Chat Admin. You are logged in Viber's Public Chat Admin.
- On the left menu, click Create Bot Account.
- On the right side of the screen, provide the mandatory information, accept the Terms and conditions and select the two Viber acknowledgements.
- Click Create. Your Viber bot account is created and the token associated to your Viber bot is generated.
Step 2. Connect your Druid chatbot to the Viber Chat API
- Log in the Druid Chatbot Portal and from the main menu, select your bot. The bot configuration page appears by default on the Details tab.
- Click the Channels tab, then click Viber. The Viber Channel Info section expands.
- Enter / Paste the access token you copied when creating the Viber bot.
- Click the Publish button. The channel activation might take up to 1 minute, wait until it completes.
After the channel's activation, two fields are available in DRUID:
- [[ChatUser]].ChannelId = "viber"
- [[ChatUser]].UserId - Stores an unique identifier of the Viber user account.
Step 3. Talk to your bot
To open the chatbot in the Viber channel, in the Druid Portal, go to the bot settings, click the Channels tab and click on the Viber channel icon. You can start talking to the bot.
Step 4. Publish your Viber bot
-
On your mobile device, open the Viber app.
-
At the bottom, tap on More.
-
Tap on Settings.
-
Tap on My Bots.
-
Tap on your Viber bot.
-
Tap on Publish.
Step 5. Make the Viber bot QR Code public
After you successfully complete the Viber integration, you have to make the Viber bot QR code available for your customers (either on your website or printed on a paper in the shop).
Your customers will open the Viber messaging app and scan the QR code to chat with your bot.